package com.googlecode.openauth.web.bean;

import java.util.List;

import com.googlecode.openauth.web.dao.IRoleDao;
import com.googlecode.openauth.web.entity.RoleInfo;

public class ChildRoleBean {
private int roleId;
private IRoleDao roleDao;

public IRoleDao getRoleDao() {
	return roleDao;
}

public void setRoleDao(IRoleDao roleDao) {
	this.roleDao = roleDao;
}

public int getRoleId() {
	return roleId;
}

public void setRoleId(int roleId) {
	this.roleId = roleId;
}
public List<RoleInfo> getChildRole()
{
	return roleDao.getChildRoles(this.getRoleId());
}
}
